<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
//header("content='text/html' charset='utr-8'");
if(!file_exists("./a/index.html")) die('系统为检测到相关内容');
function scan($foldername){
		//默认扫描文件夹
		$folder=empty($foldername)?"tmp":$foldername;
		$files=array();
		if(file_exists($folder)&&is_dir($folder)){
			$profile=is_writable($folder1)?"可写":"不可写";
			$folder_flag=@opendir(folder);
			//
			while(false!=($file=@readdir($floder_flag))){
				//$filedir
				//$files[]['fname']=$file;
				echo $file;
			}
			@closedir($folder_flag);
			print_r($files);
		}
	}
	
	scan();
?>